<?php

class Ext_Controller_Plugin_Setting extends Zend_Controller_Plugin_Abstract 
{
    public function routeStartup(Zend_Controller_Request_Abstract $request)
    {
        $settingsAllRow = App_Model_DbTable_Settings::getInstance()->getSettingsAll();
        $settings = array();
        for($i=0;$i<count($settingsAllRow);$i++)
        {
            $settings[$settingsAllRow[$i]['k']] = $settingsAllRow[$i]['v'];
        }
        Zend_Registry::set('settings', $settings);
    }
}